export default {
  searchName(state,username){
    state.username = username
  },

  getList(state,list){
    state.list = list
  },

  showLoding(state){
    state.tip=false
    state.loading=true
    state.noBody=true
    state.error=true
  },
  showList(state){
    state.tip=false;
    state.loading=false
    state.noBody=false
    state.error=false
  },
  showNoBody(state){
    state.tip=false
    state.loading=false
    state.noBody=true
    state.error=true
  },
  showError(state,errorInfo){
    state.tip=false;
    state.loading=false;
    state.noBody=false;
    state.error=true;
    state.errorInfo=errorInfo
  }
}
